package com.beck;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

import java.io.FileNotFoundException;
@SpringBootApplication
public class App extends SpringBootServletInitializer {
    public static void main(String[] args) throws FileNotFoundException {
//        File path = new File(ResourceUtils.getURL("classpath:").getPath());
//        System.out.println("=========" + path.getAbsolutePath());
//        System.out.println(Arrays.toString(args));
        SpringApplication.run(App.class);
    }

    @Override
    public SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(App.class);
    }
}
